﻿
@{
    ViewData["Title"] = "Add";
    Layout = "~/Views/Shared/_BackLayout.cshtml";
}
<div class="container-fluid flex-grow-1 container-p-y">
    <h4 class="font-weight-bold py-3 mb-0">用户管理</h4>

    <div class="card mb-4">
        <h6 class="card-header">添加用户</h6>
        <div class="card-body">
            <form action="/User/AddUser" method="post">
                <div class="form-group row">
                    <label class="col-form-label col-sm-2 text-sm-right">用户名</label>
                    <div class="col-sm-10">
                        <input type="text" class="form-control" name="Username" placeholder="请输入用户名" required />
                        <div class="clearfix"></div>
                    </div>
                </div>
                <div class="form-group row">
                    <label class="col-form-label col-sm-2 text-sm-right">密码</label>
                    <div class="col-sm-10">
                        <input type="text" class="form-control" name="Password" placeholder="请输入密码" required />
                        <div class="clearfix"></div>
                    </div>
                </div>
                <div class="form-group row">
                    <label class="col-form-label col-sm-2 text-sm-right">确认密码</label>
                    <div class="col-sm-10">
                        <input type="text" class="form-control" name="ConfirmPassword" placeholder="请确认密码" required />
                        <div class="clearfix"></div>
                    </div>
                </div>
                <fieldset class="form-group">
                    <div class="row">
                        <label class="col-form-label col-sm-2 text-sm-right pt-sm-0" style="margin-top:10px;">性别</label>
                        <div class="col-sm-10">
                            <select class="custom-select" name="Gender">
                                <option value="0">男</option>
                                <option value="1">女</option>
                                <option value="2" selected>未知</option>
                            </select>
                        </div>
                    </div>
                </fieldset>
                <div class="form-group row">
                    <label class="col-form-label col-sm-2 text-sm-right">手机号码</label>
                    <div class="col-sm-10">
                        <input type="number" class="form-control" name="Tel" placeholder="请输入手机号" required />
                        <div class="clearfix"></div>
                    </div>
                </div>
                <div class="form-group row">
                    <label class="col-form-label col-sm-2 text-sm-right">收货地址</label>
                    <div class="col-sm-10">
                        <input type="text" class="form-control" name="Address" placeholder="请输入收货地址" required />
                        <div class="clearfix"></div>
                    </div>
                </div>
                <div class="form-group row">
                    <div class="col-sm-10 ml-sm-auto">
                        <button type="submit" class="btn btn-success">确定</button>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>

